﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.BasicData.Warehouses
{
    public class WarehouseUpdateDto : EntityDto<Guid>
    {
        [Required]
        public string Code { set; get; }

        [Required]
        public string Name { set; get; }

        public string Address { set; get; }

        public bool ActivateLocation { get; set; }

        public bool Activated { set; get; }

        public List<LocationUpdateDto> Locations { get; set; }

    }

    public class LocationUpdateDto : EntityDto<Guid>
    {
        [Required]
        public string Code { get; set; }

        [Required]
        public string Name { get; set; }
    }
}
